package com.luoran.system.service.impl;

import com.luoran.system.domain.SysCarOrder;
import com.luoran.system.service.SysCarOrderService;
import com.luoran.system.mapper.SysCarOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 李杰晨
* @description 针对表【sys_car_order】的数据库操作Service实现
* @createDate 2024-09-20 16:14:45
*/
@Service
public class SysCarOrderServiceImpl implements SysCarOrderService{

    @Autowired
    SysCarOrderMapper sysCarOrderMapper;

    @Override
    public List<SysCarOrder> list() {
        return sysCarOrderMapper.list();
    }

    @Override
    public SysCarOrder getById(Integer id) {
        return sysCarOrderMapper.getById(id);
    }

    @Override
    public SysCarOrder getByTradeNo(String out_trade_no) {
        return sysCarOrderMapper.getByTradeNo(out_trade_no);
    }

    @Override
    public int updateById(SysCarOrder sysCarOrder) {
        return sysCarOrderMapper.updateById(sysCarOrder);
    }
}




